package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RenyuanMapper;
import com.ruoyi.system.domain.Renyuan;
import com.ruoyi.system.service.IRenyuanService;
import com.ruoyi.common.core.text.Convert;

/**
 * renyuanService业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-28
 */
@Service
public class RenyuanServiceImpl implements IRenyuanService 
{
    @Autowired
    private RenyuanMapper renyuanMapper;

    /**
     * 查询renyuan
     * 
     * @param userid renyuanID
     * @return renyuan
     */
    @Override
    public Renyuan selectRenyuanById(String userid)
    {
        return renyuanMapper.selectRenyuanById(userid);
    }

    /**
     * 查询renyuan列表
     * 
     * @param renyuan renyuan
     * @return renyuan
     */
    @Override
    public List<Renyuan> selectRenyuanList(Renyuan renyuan)
    {
        return renyuanMapper.selectRenyuanList(renyuan);
    }

    /**
     * 新增renyuan
     * 
     * @param renyuan renyuan
     * @return 结果
     */
    @Override
    public int insertRenyuan(Renyuan renyuan)
    {
        return renyuanMapper.insertRenyuan(renyuan);
    }

    /**
     * 修改renyuan
     * 
     * @param renyuan renyuan
     * @return 结果
     */
    @Override
    public int updateRenyuan(Renyuan renyuan)
    {
        return renyuanMapper.updateRenyuan(renyuan);
    }

    /**
     * 删除renyuan对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteRenyuanByIds(String ids)
    {
        return renyuanMapper.deleteRenyuanByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除renyuan信息
     * 
     * @param userid renyuanID
     * @return 结果
     */
    @Override
    public int deleteRenyuanById(String userid)
    {
        return renyuanMapper.deleteRenyuanById(userid);
    }
}
